package com.asj.house.client;

import com.asj.house.config.feign.HouseIntermediaryFeignConfig;
import com.asj.house.returns.RespEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "houseIntermediaryClient", url = "${house.url}", configuration = HouseIntermediaryFeignConfig.class)
public interface HouseIntermediaryClient {

    @GetMapping("/house-intermediary/list")
    RespEntity listIntermediary(@RequestParam(value = "roomId", required = true) Integer roomId);

}
